package koction.model.consumer;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service
public class ConsumerServiceImpl implements ConsumerService {
	@Resource(name="consumerDaoImpl")
	private ConsumerDao consumerDao;

	@Override
	public ConsumerVO consumerIdCheck(String id) {
		return consumerDao.findById(id);
	}

	@Override
	public int registerConsumer(ConsumerVO cvo) {
		return consumerDao.registerConsumer(cvo);
	}

	@Override
	public int updateConsumer(ConsumerVO cvo) {
		return consumerDao.updateConsumer(cvo);
	}

	@Override
	public ConsumerVO loginConsumer(ConsumerVO cvo) {
		return consumerDao.loginConsumer(cvo);
	}

	@Override
	public int deleteConsumer(ConsumerVO cvo) {
		return consumerDao.deleteConsumer(cvo);
	}
}
